package designpattern.strategy;

public class Phone {
	private PhoneSceneStrategy phoneScene;

	public void setPhoneScene(PhoneSceneStrategy ps) {
		this.phoneScene = ps;
	}

	public PhoneSceneStrategy getPhoneScene() {
		return this.phoneScene;
	}

	public void applyPhoneScence() {
		phoneScene.apply();
	}

	public static void main(String[] argsStrings) {
		Phone phone = new Phone();
		phone.setPhoneScene(new OutDoorStrategy());
		phone.applyPhoneScence();
		phone.setPhoneScene(new OfficeStrategy());
		phone.applyPhoneScence();

		phone.setPhoneScene(new HomeStrategy());
		phone.applyPhoneScence();
	}
}
